package com.pagepub.expo.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.simple.ParameterizedRowMapper;

public class IdName {
	public static final ParameterizedRowMapper<IdName> idNameMapper = new ParameterizedRowMapper<IdName>() {
		public IdName mapRow(ResultSet rs, int rowNum) throws SQLException {
			IdName obj = new IdName();
			obj.setId(rs.getLong("id"));
			obj.setName(rs.getString("name"));
			return obj;
		}
	};
	private Long id;
	private String name;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	

}
